<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<dict:dict type="province,city,district" var="provincecitydistrict" />
<script type="text/javascript">
var provincecitydistrict = eval('('+'<%=application.getAttribute("provincecitydistrict")%>'+')');
</script>
<table class="table-tab">
	<tr>
		<td class="td-tab cur-tab">
			<a href="<c:url value="/console/recruit/firstTrialEx.do?method=list" />">初审</a>
		</td>
		<td class="td-tab">
			<a href="<c:url value="/console/recruit/visitEx.do?method=list" />">走访</a>
		</td>
		<td class="td-tab">
			<a href="<c:url value="/console/recruit/matReviewEx.do?method=list" />">材料审核</a>
		</td>
		<td class="td-tab-blank"></td>
	</tr>
</table>
<form action="<c:url value='/console/recruit/firstTrialEx.do'/>" method="post">
	<table class="table-layout">
		<tr class="tr-odd">
			<td class="td-label">
				申请投资区域
			</td>
			<td>
				<span id="dropContainer_0"> <input type="hidden" name="filter_provinceId" value="<c:out value="${filters.provinceId}" />" /> <select id="drop_0"></select> </span>省&nbsp;&nbsp; <span id="dropContainer_1"> <input type="hidden" name="filter_cityId"
						value="<c:out value="${filters.cityId}" />" /> <select id="drop_1"></select> </span>市&nbsp;&nbsp; <span id="dropContainer_2"> <input type="hidden" name="filter_districtId" value="<c:out value="${filters.districtId}" />" /> <select id="drop_2"></select>
				</span>区
			</td>
		</tr>
		<tr class="tr-even">
			<td class="td-label">
				申请日期
			</td>
			<td>
				<input type="text" name="filter_earlierDate" value="<c:out value="${filters.earlierDate}" />" class="Wdate" onclick="WdatePicker()" />
				&nbsp;&nbsp;~&nbsp;&nbsp;
				<input type="text" name="filter_laterDate" value="<c:out value="${filters.laterDate}" />" class="Wdate" onclick="WdatePicker()" />
			</td>
		</tr>
		<tr class="tr-odd">
			<td class="td-label">
				状态
			</td>
			<td>
				<input type="hidden" id="filter_stepType" name="filter_stepType" value="<c:out value="${filters.stepType}" />" />
				<select id="selectstepType">
					<option value="">
						请选择
					</option>
					<option value="2">
						待处理
					</option>
					<option value="1">
						通过
					</option>
					<option value="0">
						未通过
					</option>
				</select>
			</td>
		</tr>
	</table>
	<div class="right-opertion">
		<input type="button" value="搜索" onclick="search(this);" class="button" />
	</div>
	<br />
	<table class="table-layout">
		<tr class="tr-thead">
			<th rowspan="2" style="width:30px;">
				序号
			</th>
			<th rowspan="2">
				流水号
			</th>
			<th rowspan="2">
				提交日期
			</th>
			<th rowspan="2">
				<a href="javascript:void(0);" onclick="javascript:sort('corp',this)">公司全称</a>
			</th>
			<th colspan="3">
				申请投资区域
			</th>
			<th rowspan="2">
				初审
			</th>
			<th rowspan="2">
				操作
			</th>
		</tr>
		<tr class="tr-thead">
			<th>
				省
			</th>
			<th>
				市
			</th>
			<th>
				县/区
			</th>
		</tr>
		<logic:present name="page">
			<logic-el:iterate name="page" property="result" id="applyJudgmentListVoEx" indexId="index">
				<tr class="<c:if test="${index % 2 == 0}">tr-odd</c:if><c:if test="${index % 2 == 1}">tr-even</c:if>">
					<td>
						<c:out value="${index + 1}" />
						&nbsp;
					</td>
					<td>
						<c:out value="${applyJudgmentListVoEx.serial}" />
						&nbsp;
					</td>
					<td>
						<c:out value="${applyJudgmentListVoEx.submitDate}" />
						&nbsp;
					</td>
					<td>
						<a href="<c:url value='applyBaseEx.do?method=view&id=${applyJudgmentListVoEx.applyId}'/>"><c:out value="${applyJudgmentListVoEx.corp}" /></a> &nbsp;
					</td>
					<td>
						<logic:iterate id="prov" name="provinces">
							<c:if test="${prov.code == applyJudgmentListVoEx.provinceId}">
								<c:out value="${prov.name}" />
							</c:if>
						</logic:iterate>
						&nbsp;
					</td>
					<td>
						<logic:iterate id="city" name="cities">
							<c:if test="${city.code == applyJudgmentListVoEx.cityId}">
								<c:out value="${city.name}" />
							</c:if>
						</logic:iterate>
						&nbsp;
					</td>
					<td>
						<logic:iterate id="dist" name="districts">
							<c:if test="${dist.code == applyJudgmentListVoEx.districtId}">
								<c:out value="${dist.name}" />
							</c:if>
						</logic:iterate>
						&nbsp;
					</td>
					<td>
						<c:choose>
							<c:when test='${"0" == applyJudgmentListVoEx.stepType}'>
								<a href="<c:url value='applyConfirmEx.do?method=view&applyBaseId=${applyJudgmentListVoEx.applyId}'/>">未通过</a>
							</c:when>
							<c:when test='${"1" == applyJudgmentListVoEx.stepType}'>
								<a href="<c:url value='applyConfirmEx.do?method=view&applyBaseId=${applyJudgmentListVoEx.applyId}'/>">通过</a>
							</c:when>
							<c:when test='${"2" == applyJudgmentListVoEx.stepType}'>待处理</c:when>
						</c:choose>
						&nbsp;
					</td>
					<td>
						<c:if test='${"2" == applyJudgmentListVoEx.stepType}'>
							<a href="<c:url value='applyConfirmEx.do?method=edit&applyBaseId=${applyJudgmentListVoEx.applyId}'/>">审批</a>&nbsp;
							</c:if>
						<a href="<c:url value='apply.do?method=download&id=${applyJudgmentListVoEx.applyId}'/>">下载</a>
					</td>
				</tr>
			</logic-el:iterate>
		</logic:present>
	</table>
	<page:page name="page" />
</form>
<script type="text/javascript">
showDropDown(provincecitydistrict,["filter_provinceId","filter_cityId","filter_districtId"],"drop");
bindSelect("selectstepType","filter_stepType");
</script>
